# @Author   :   yuanxi
# @Time      :  2022/3/16
# @Desc     :   出生即入户

from basic.UIParent import UIParent
from basic.utils.asserts import asserts
from commen.page.ann.myPage import myPage
from commen.page.ann.searchPage import searchPage
from commen.page.ann.indexPage import IndexPage
from commen.page.commen.authorizePage import authorizePage
from commen.page.ann.annApplication.born_register_page import BornRegisterPage


class BornRegisterCase(UIParent):

    @classmethod
    def test_born_register_check(cls):
        '''出生即入户校验'''

        myPage.loginByStatu()
        IndexPage.clickIndex()
        searchPage.searchEvent("出生即入户")
        authorizePage.ifAuthorize()

        status = BornRegisterPage.born_register_index()
        asserts.true(status, "出生即入户校验")
